package com.sjc.geekDesignPattern.bridge;

import com.sjc.geekDesignPattern.bridge.notify.NormalNotification;
import com.sjc.geekDesignPattern.bridge.notify.SevereNotification;
import com.sjc.geekDesignPattern.bridge.send.EmailMessageSender;
import com.sjc.geekDesignPattern.bridge.send.SmssMessageSender;

/**
 * @Classname TestMain
 * @Description
 * @Date 2020/5/4 12:45
 * @Created by SangJiacun
 */
public class TestMain {
    public static void main(String[] args) {
        SevereNotification severeNotification = new SevereNotification(new EmailMessageSender());
        severeNotification.sendMsg("严重崩溃,通过邮件发送");

        NormalNotification normalNotification = new NormalNotification(new SmssMessageSender());
        normalNotification.sendMsg("正常问题,通过短信发送");
    }
}
